#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/CDStructures.h>
#import <UIKit/UITextView.h>
#import <UIKit/UITransformAnimation.h>
#import <UIKit/UIAnimator.h>
#import <UIKit/UIPushButton.h>
#import <UIKit/UIKeyboard.h>

#import "FDDefaultsController.h"

@interface NSObject (TextInputDelegateMethods)

- (void)updatedPlayerNames;

@end

@interface FDTextInputView : UIView
{
		id				delegate;
		
		FDDefaultsController	*defaults;
		
		UITextView		*inputText;
		UIPushButton	*doneButton;
		
		UITransformAnimation	*translate;
		UIAnimator				*animator;
		
		struct CGRect		_contentRect;
		struct CGRect		_offScreenRect;
		struct CGRect		_onScreenRect;		
}

- (id)initWithFrame:(struct CGRect)frame forPlayer:(int)player;
- (void)show;
- (void)hide;

- (void)doneWithEditing:(struct __GSEvent *)event;

- (NSString*)text;
- (void)setText:(NSString*)text;
- (void)setFocus;

- (id)delegate;
- (void)setDelegate:(id)newDelegate;

- (void)dealloc;
@end
